home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: news.ridgecrest.ca.us!usenet
- From: mojaveg@mojaveg.ridgecrest.ca.us (Everett M. Greene)
- Subject: Re: pointer conversion error
- X-Nntp-Posting-Host: annex027
- Content-Type: text/plain; charset=iso-8859-1
- Message-ID: <19960325.7D4A7F8.6B80@mojaveg.ridgecrest.ca.us>
- Sender: usenet@ridgecrest.ca.us (Ridgenet Usenet admin)
- Content-Transfer-Encoding: 8bit
- Organization: none that you'd notice
- X-Newssoftware: GRn 2.1 Feb 19, 1994
- References: <381.6657T11T967@mistral.co.uk> <Pine.A32.3.91.960324124636.16067A-100000@red.weeg.uiowa.edu>
- Mime-Version: 1.0
- Date: Mon, 25 Mar 1996 15:23:18 GMT
-
- In article <Pine.A32.3.91.960324124636.16067A-100000@red.weeg.uiowa.edu>
- The Amorphous Mass <robinson@blue.weeg.uiowa.edu> writes:
- > On 24 Mar 1996, Adam Atkinson wrote:
- >
- > > my c compiler (SAS/C version 6.56) creates a warning about the following:
- > >
- > > printf("%u %u %u \n", i, l, h);
- > >
- > > three.c 36 Warning 104: conversion from pointer to const/volatile to
- > > pointer to non-const/volatile
- > > What am I doing wrong? i,l and h are unsigned longs.
- >
- > That's a very curious error. The problem seems to be that you're passing
- > longs to printf and telling printf that they're ints. Try using %lu instead
- > of %u.
-
- Notice that it's not an error, only a warning. i, l, or h has been
- defined as const?
-
- -----------------------------------------------------------------------
- Everett M. Greene (The Mojave Greene, crotalus scutulatus scutulatus)
- Ridgecrest, Ca. 93555 Path: mojaveg@ridgecrest.ca.us
-